package pers.hl.common

import android.util.Log
import android.view.ViewGroup
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
    fun getOwnMethod() {
        try {
            val method = javaClass.getDeclaredMethod("test")
            println("方法自身 ,name=${method.name}, returnType=${method.returnType.simpleName}")
        } catch (e: Exception) {
            println("找不到自身")
        }
    }

    private fun test(): String {
        return ""
    }
}
